//
//  KLRecommendHeaderView.m
//  BIBILILI
//
//  Created by juwangkeji on 2018/7/11.
//  Copyright © 2018年 WTF. All rights reserved.
//

#import "KLRecommendHeaderView.h"
#import "KLCarouselView.h"
@implementation KLRecommendHeaderView{
    NSMutableArray * m_array;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        KLCarouselView * carousel = [[KLCarouselView alloc] initWithImgNameArray:m_array frame:frame];
        [self addSubview:carousel];
    }
    return self;
}


-(instancetype)createAHeaderviewWithImageArray:(NSMutableArray * )array frame:(CGRect)frame{
    m_array = array;
    return [self initWithFrame:frame];
}
@end
